package com.gxa.worker.recycling.service;

import com.gxa.core.recycling.exception.BusinessException;
import com.gxa.core.recycling.pojo.Waste;
import com.gxa.core.recycling.pojo.WasteType;

import java.util.List;

public interface WasteService {
    /**
     * 获取所有的废品一级分类
     * @return
     */
    List<WasteType> getWasteType();

    /**
     * 根据一级分类id查出所有二级分类
     * @param id
     * @return
     */
    List<Waste> getWasteByWasteType(Long id);

    /**
     * 根基商品Id
     * @param id
     * @param wasteId
     * @return
     */
    Integer getExhangePoint(Long id,Long wasteId) throws BusinessException;


}
